package com.xuwangcheng.viewer;

public class ObserverTest {
	public static void main(String[] args) {
		House h = new House(3000000.0);
		h.addObserver(new HousePriceObserver("小刚"));
		h.addObserver(new HousePriceObserver("小红"));
		h.addObserver(new HousePriceObserver("小明"));
		
		h.setPrice(3500000.0);
	}
}
